#include "mystdio.h"
#include <string.h>
int main()
{
MY_FILE* fp=my_fopen("log.txt","w");
if(fp==NULL)
{
  perror("my_fopen fails");
}
const char* ptr="hello my_fwrite\n";
my_fwrite(ptr,strlen(ptr),3,fp);
my_fclose(fp);





  return 0;
}
